﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace FeedAntGame.Support
{
    class Status
    {
        public event EventHandler ValueChanged;

        public const int UP = 0;
        public const int DOWN = 1;
        public const int UP_LEFT = 2;
        public const int UP_RIGHT = 3;
        public const int DOWN_LEFT = 4;
        public const int DOWN_RIGHT = 5;
        public const int LEFT = 6;
        public const int RIGHT = 7;
        public const int STOP = 8;

        int value = UP;
        

        public int Value
        {
            get { return this.value; }
            set 
            {
                this.value = value;
                if (ValueChanged != null)
                {
                    this.ValueChanged(this, null);
                }
            }
        }

        public Status()
        {           
            value = DOWN;
        }

    }
}
